﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SubPolicyKnow.aspx.cs"
    Inherits="Web.SubPolicyKnow" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>知识点选择|海淀区学校素质评测管理平台</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="js/boxy/stylesheets/boxy.css" rel="stylesheet" type="text/css" />

    <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="js/boxy/javascripts/jquery.boxy.js" type="text/javascript"></script>

    <script src="js/module.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
    function SelectKnowPoint(formid, selectId)
    {
        var selectObj = window.document.forms[formid][selectId];
        var selectIndex = selectObj.selectedIndex;
        if(selectObj.options[selectIndex].value=="")
        {
            alert("请选择一个知识点");
            return false;
        }
        else
        {
            return true;
        }
    }
    
    function AddToSelect(formid,selectId,value,text)
    {
        parent.AddToSelect(formid,selectId,value,text);
    }
    function RemoveSelect(formid, selectId, value)
    {
        parent.RemoveSelect(formid, selectId, value);
    }
    function RemoveAllSelect(formid, selectId)
    {
        parent.RemoveAllSelect(formid, selectId);
    }
    function OnSucceeded(result)
    {
        if (result == "exist")
        {
            alert('已经添加过此知识点!');
        }
        else if (result == "failure")
        {
             alert('失败!');
        }
        else
        {
            alert("成功");
        }
    }
    </script>
    <style type="text/css">
       #chkBooks td {height:23px;line-height:23px;}
    </style>
</head>
<body>
    <div id="main" style="width: 860px;">
        <form id="form1" runat="server">
        <div id='block'>
            <div>
                
                <table>
                    <tr align="left" style="height:30px;">
                        <td>
                            科目
                        </td>
                        <td>
                            <asp:Label ID="lbSujbect" runat="server"></asp:Label>
                        </td>
                        <td rowspan="4">
                            试用范围
                             <div  style="overflow:auto; vertical-align:top; height:110px;  width:160px;">
                                <asp:CheckBoxList ID="chkBooks" runat="server" Width="100px"  RepeatDirection="Vertical"></asp:CheckBoxList>
                            </div>
                        </td>
                        
                    </tr>
                    <tr  align="left" style="height:30px;">
                        <td>
                            百分比
                        </td>
                        <td>
                            <select name="drpPercent" id="drpPercent"  runat="server">
                                <option value="0.05">5%</option>
                                <option value="0.10">10%</option>
                                <option value="0.15">15%</option>
                                <option value="0.20">20%</option>
                                <option value="0.25">25%</option>
                                <option value="0.30">30%</option>
                                <option value="0.35">35%</option>
                                <option value="0.40">40%</option>
                                <option value="0.45">45%</option>
                                <option value="0.50">50%</option>
                                <option value="0.55">55%</option>
                                <option value="0.60">60%</option>
                                <option value="0.65">65%</option>
                                <option value="0.70">70%</option>
                                <option value="0.75">75%</option>
                                <option value="0.80">80%</option>
                                <option value="0.85">85%</option>
                                <option value="0.90">90%</option>
                                <option value="0.95">95%</option>
                                <option value="1.00">100%</option>
                            </select>
                        </td>
  
                    </tr>
                    <tr  align="left" style="height:30px;">
                        <td>
                            知识点
                        </td>
                         <td >
                            <asp:DropDownList ID="drpKownPoint" runat="server" Width="600px" >
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr  align="left" style="height:30px;">
                        <td colspan="3">
                             <asp:Button ID="Button1" runat="server" Text="添加" Width="100px" OnClick="Button1_Click" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="blockcontent">
            <asp:ListView ID="UserLists" runat="server">
                <LayoutTemplate>
                    <table cellpadding="5" cellspacing="1" border="0" width="840px" id="userlist">
                        <tr align="center">
                            <th width="10%">
                                知识点名称
                            </th>
                            <th width="20%">
                                百分比
                            </th>
                            <th width="15%">
                                管理
                            </th>
                        </tr>
                        <asp:Label ID="itemPlaceholder" runat="server" Text="Label"></asp:Label></table>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr align="center">
                        <td>
                            <asp:Label ID="lbKownPoint" OnDataBinding="lbLeve_DataBinding" runat="server" Text='<%# Eval("KnowPointId")%>'></asp:Label>
                        </td>
                        <td >
                            <%# String.Format("{0:0%}", Eval("KnowPointTypePercent"))%>
                        </td>
                        <td>
                            <asp:LinkButton ID="lbDelete" OnClick="lbDelete_Click" CommandArgument='<%# Eval("KnowPointId")%>'
                                runat="server">删除</asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:ListView>
        </div>
    </form> 
    </div>
</body>
</html>
